package chap5.Task;
public class Task5 {
    public static void main(String[] args) {
        double a[] = new double[]{1, 2, 3, 4, 5, 6, 7, 8};
        double mul = 1;
        for (int i = 0; i < a.length; i++) {
            mul *= a[i];
        }
        System.out.println("数组所有数的积为:" + mul);


    }
}
